<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/3/4
 * Time: 20:09
 */
namespace iBrand\Component\Purchase\Listeners;

class StockChangedListener
{
    /**
     * 库存变动，将数据记录到store_stock_record表
     */

    public function onStockChanged()
    {

    }


    public function subscribe($events)
    {
        $events->listen(
            'store.stock.changed',
            'iBrand\Component\Purchase\Listeners\StockChangedListener@onStockChanged'
        );
    }

}